#ifndef MAIN_LOOP_H
#define MAIN_LOOP_H


#define GetRelayStatus HAL_GPIO_ReadPin(GPIOB, GPIO_PIN_5)
#define OpenRelay HAL_GPIO_WritePin(GPIOB, GPIO_PIN_5, GPIO_PIN_RESET)
#define CloseRelay HAL_GPIO_WritePin(GPIOB, GPIO_PIN_5, GPIO_PIN_SET);

//继电器低电平吸合
#define OPEN      0
#define CLOSE     1

#define  RS485_EN

extern short temperature;
extern unsigned char uc_EventFlag;
extern unsigned char uc_RemoteOpenFlag;
extern unsigned int ui_RemoteAdjustIRCode;
extern unsigned char uc_autoModeFlag;
extern unsigned char uc_ReportHeartEventFlag;
extern unsigned char uc_RestoreDefaultSet;

void main_Loop(void);

#endif
